package br.com.sig.cadastro.produto.business.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import br.com.sig.business.model.entity.BaseEntity;

@Entity
@Table(schema="sig_cadastro", name="imagem")
public class Imagem extends BaseEntity {

	private static final long serialVersionUID = -1058887203007150727L;

	private String nome;
	
	private byte[] file;

	@NotNull
	@Column(nullable = false)
	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}
	
	@Lob
	@Column(nullable = false)
	public byte[] getFile() {
		return file;
	}

	public void setFile(byte[] file) {
		this.file = file;
	}
}